package com.file;

import java.io.BufferedReader;
import java.io.FileReader;

/**
 * Created by shuyun on 2016/9/9.
 */
public class FileTest02 {
    public static void main(String[] args) {
        try {
            BufferedReader reader = new BufferedReader(new FileReader("E:\\\\脱敏更改表字段.sql"));
            String line = null;
            String tableName = "";
            while((line=reader.readLine())!=null){
//                String item[] = line.split("，");
//                String last = item[item.length-1];
//                if(last.endsWith("TABLE_NAME\tTABLE_ROWS")){
//                    tableName = last.split(",")[0];
//                }
                if(line.startsWith("-- ")){
                    System.out.println(line.substring(2,line.length()));
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
